package StudyGroup;/*
* String 的测试
* 2022.1.8
* Creat By Code J
* */

public class StringTest {
    public static void main(String[] args){

        String s1 = "Hello Word";

        System.out.println(s1);

        int num = 1001;
        String numbers = "学号：";
        String info =numbers + num;
        boolean b1 = true;
        String info1 = numbers + b1;
        System.out.println(info);
        System.out.println(info1);

        char c1 = 'a';//97 A:65
        int i1 = 10;
        String str = "hello";
        System.out.println(c1 + i1 +str);
        System.out.println(c1 + str +i1);
        System.out.println(c1 +(str + i1));
        System.out.println((c1 + i1) + str);
        System.out.println(str + c1 + i1);

        System.out.println("*  *");
        System.out.println('*' + '\t' + '*');
        System.out.println('*' + "\t" + '*');

        String str1 = "4";
        String st2 = 3.5f + "";
        System.out.println(st2 + str1);


    }
}
